<jsp:include page="template-top.jsp" />

<jsp:include page="error-list.jsp" />

<%@ page import="assignment4.databeans.BookmarkBean" %>
<p>

<%
		if(request.getAttribute("bookmarkList")!=null){
        BookmarkBean[] bookmarks = (BookmarkBean[])request.getAttribute("bookmarkList");
        for (int i=0; i<bookmarks.length; i++) {
%>
        <div id="bookmark<%=i+1%>">
			<table>
				<tr>
					<td><b>Bookmark: </b></td>
					<td class="name" id="bookmark"><a href="bookmark.do?email=<%=bookmarks[i].getEmail()%>&bookmark=<%=bookmarks[i].getBookmark()%>"><%=bookmarks[i].getBookmark()%></a></td>
				</tr>
					<td><b>Owner: </b></td>
					<td class="owner" id="owner"><%=bookmarks[i].getEmail()%></td>
				<tr>
					<td><b>Comment: </b></td>
					<td class="comment" id="comment"><%=bookmarks[i].getComment()%></td>
				</tr>
				<tr>
					<td><b>Clicks: </b></td>
					<td class="points" id="points"><%=bookmarks[i].getClick()%></td>
				</tr>
			</table>
		</div>
<%
		}
		}
%>
</p>

<jsp:include page="template-bottom.jsp" />
